package exceptions;

import static org.junit.Assert.*;

import org.junit.Before;
import org.junit.Test;

public class StatesExceptionTest {

	@Test(expected=StatesException.class)
	public void testException() throws StatesException {
		throw new StatesException("un mensaje");
	}

	@Test
	public void testGetMensaje() throws StatesException {
		try{
			throw new StatesException("Ups, colapso.");
		}
		catch(StatesException e){
			assertEquals("Ups, colapso.",e.getMessage());
		}
	}
}
